﻿using System;
using System.Data;
using System.Data.Common;
using Liger.Common;
using Liger.Data;

namespace EasyFMS.Model
{

	/// <summary>
	/// 实体类vCheckTrans
	/// </summary>
	[Serializable]
	public class vCheckTrans : Entity 
	{ 
		 public vCheckTrans() 
            : base("vCheckTrans") 
        { 

        }


		#region Model
		private int _UID;
		private string _CheckNO;
		private string _CheckStatus;
		private string _CheckType;
		private string _TransType;
		private int? _UserCreateID;
		private string _UserCreate;
		private string _CreateDate;
	 
		/// <summary>
		/// 
		/// </summary>
		public int UID
		{
			get{ return _UID; }
			set
			{
				this.OnPropertyValueChange(_.UID,_UID,value);
				this._UID = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string CheckNO
		{
			get{ return _CheckNO; }
			set
			{
				this.OnPropertyValueChange(_.CheckNO,_CheckNO,value);
				this._CheckNO = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string CheckStatus
		{
			get{ return _CheckStatus; }
			set
			{
				this.OnPropertyValueChange(_.CheckStatus,_CheckStatus,value);
				this._CheckStatus = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string CheckType
		{
			get{ return _CheckType; }
			set
			{
				this.OnPropertyValueChange(_.CheckType,_CheckType,value);
				this._CheckType = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string TransType
		{
			get{ return _TransType; }
			set
			{
				this.OnPropertyValueChange(_.TransType,_TransType,value);
				this._TransType = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? UserCreateID
		{
			get{ return _UserCreateID; }
			set
			{
				this.OnPropertyValueChange(_.UserCreateID,_UserCreateID,value);
				this._UserCreateID = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string UserCreate
		{
			get{ return _UserCreate; }
			set
			{
				this.OnPropertyValueChange(_.UserCreate,_UserCreate,value);
				this._UserCreate = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string CreateDate
		{
			get{ return _CreateDate; }
			set
			{
				this.OnPropertyValueChange(_.CreateDate,_CreateDate,value);
				this._CreateDate = value;
			}
		}
		#endregion

		#region Method
		/// <summary>
		/// 获取列信息
		/// </summary>
		public override Field[] GetFields()
		{
			return new Field[] {
				_.UID,
				_.CheckNO,
				_.CheckStatus,
				_.CheckType,
				_.TransType,
				_.UserCreateID,
				_.UserCreate,
				_.CreateDate
			};
		}
		/// <summary>
		/// 获取值信息
		/// </summary>
		public override object[] GetValues()
		{
			return new object[] {
				_UID,
				_CheckNO,
				_CheckStatus,
				_CheckType,
				_TransType,
				_UserCreateID,
				_UserCreate,
				_CreateDate
			};
		} 
		/// <summary>
		/// 设置字段值
		/// </summary>
		public override void SetValue(string fieldName, object value)
        {
            switch (fieldName)
            { 
				case "UID":
                    this._UID = DataHelper.ConvertValue<int>(value);
                    break; 
				case "CheckNO":
                    this._CheckNO = DataHelper.ConvertValue<string>(value);
                    break; 
				case "CheckStatus":
                    this._CheckStatus = DataHelper.ConvertValue<string>(value);
                    break; 
				case "CheckType":
                    this._CheckType = DataHelper.ConvertValue<string>(value);
                    break; 
				case "TransType":
                    this._TransType = DataHelper.ConvertValue<string>(value);
                    break; 
				case "UserCreateID":
                    this._UserCreateID = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "UserCreate":
                    this._UserCreate = DataHelper.ConvertValue<string>(value);
                    break; 
				case "CreateDate":
                    this._CreateDate = DataHelper.ConvertValue<string>(value);
                    break; 
            }
        }
		/// <summary>
		/// 获取字段值
		/// </summary>
        public override object GetValue(string fieldName)
        {
            switch (fieldName)
            { 
				case "UID":
                    return this._UID; 
				case "CheckNO":
                    return this._CheckNO; 
				case "CheckStatus":
                    return this._CheckStatus; 
				case "CheckType":
                    return this._CheckType; 
				case "TransType":
                    return this._TransType; 
				case "UserCreateID":
                    return this._UserCreateID; 
				case "UserCreate":
                    return this._UserCreate; 
				case "CreateDate":
                    return this._CreateDate; 
				default :
                    return null;
            } 
        }



		#endregion

		#region _Field
		/// <summary>
		/// 字段信息
		/// </summary>
		public class _
		{
			/// <summary>
			/// * 
			/// </summary>
			public readonly static Field All = new Field("*","vCheckTrans");
 
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UID = new Field("UID","vCheckTrans","UID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field CheckNO = new Field("CheckNO","vCheckTrans","CheckNO");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field CheckStatus = new Field("CheckStatus","vCheckTrans","CheckStatus");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field CheckType = new Field("CheckType","vCheckTrans","CheckType");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field TransType = new Field("TransType","vCheckTrans","TransType");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UserCreateID = new Field("UserCreateID","vCheckTrans","UserCreateID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UserCreate = new Field("UserCreate","vCheckTrans","UserCreate");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field CreateDate = new Field("CreateDate","vCheckTrans","CreateDate");
		}
		#endregion

 
	}
}

